
package org.springblade.common.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springblade.core.redis.cache.BladeRedis;
import org.springblade.core.tool.jackson.JsonUtil;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * RedisUtil 通用工具类
 *
 * @author Chill
 */
@Data
@AllArgsConstructor
public class RedisUtil {

	private final BladeRedis bladeRedis;

	/**
	 * 保存
	 * @param key
	 * @param object
	 */
	void saveCache(String key,Object object) {
		bladeRedis.set(key, JsonUtil.toJson(object));
	}

}
